package com.epoint.mobileoa.bizlogic.icon;

/**
 * @author liyc
 * @time 2012-5-14 下午4:28:26
 * @annotation 图标
 */
public class IconInfo {

	public int iconImage;
	public String iconTitle;
	public int position;
	public Class intentviews;
	public int isShow;//1显示，0不显示
	public IconInfo(int iconImage,String iconTitle,int position,Class intentviews,int isShow) {
		this.iconImage = iconImage;
		this.iconTitle = iconTitle;
		this.position = position;
		this.intentviews = intentviews;
		this.isShow = isShow;
	}

	private OnClickListener ml;

	public void setOnClickListener(OnClickListener l){
		ml = l;
	}
	
	public OnClickListener getOnClickListener(){
		return ml;
	}

	public void executeOnClickListener(){
		ml.onClick();
	}

	public interface OnClickListener {
		void onClick();
	}
}
